var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var ResKeeper = require("AA_ResKeeper");
var NodePoolMag = require("AA_NodePoolMag");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
_decorator.property;

var _def_UI_HuDun = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.xuelinag = 0;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype.initHuDu = function (e) {
    this.xuelinag = e;
  };
  _creator.prototype.subXueLiang = function (e) {
    this.xuelinag -= e;
    var t = this.node.opacity;
    cc.tween(this.node).to(.1, {
      opacity: t - 50
    }).to(.1, {
      opacity: t
    }).start();
    this.xuelinag <= 0 && NodePoolMag.NodePoolMag.instance.recycleNode("hudun", this.node);
  };
  return __decorate([_ccclass], _creator);
}(ResKeeper.default);
exports.default = _def_UI_HuDun;